package md.mru.core.dtos;

import java.io.Serializable;

public class TreeModelUserGroupDto implements Serializable {

    private static final long serialVersionUID = 5174013273826631750L;

    private TreeUserGroupIdDto id;
    private boolean canWrite;

    public TreeModelUserGroupDto() {
        super();
    }

    public TreeModelUserGroupDto(TreeNodeModelDto treeNode, UserGroupDto group, boolean canWrite) {
        this.id = new TreeUserGroupIdDto(treeNode, group);
        this.canWrite = canWrite;
    }

    public TreeUserGroupIdDto getId() {
        return id;
    }

    public void setId(TreeUserGroupIdDto id) {
        this.id = id;
    }

    public boolean getCanWrite() {
        return canWrite;
    }

    public void setCanWrite(boolean canWrite) {
        this.canWrite = canWrite;
    }
}


